home *** CD-ROM | disk | FTP | other *** search
- Path: news.cybercom.net!usenet
- From: nield@cybercom.net (John Nield)
- Newsgroups: comp.lang.c
- Subject: How to use assert( )
- Date: Mon, 08 Apr 1996 21:22:15 GMT
- Organization: Cyber Access Internet Services (617) 396-0491
- Message-ID: <4kc3k7$dur@orion.cybercom.net>
- Reply-To: nield@cybercom.net
- NNTP-Posting-Host: dial1-3.cybercom.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- I am interested in the use of the assert() library function (macro?).
- Neither the FAQ, nor K&R seems to have anything about it. Could
- someone help me with a breif explanation of its uses and mabye some
- example code?
-
- I'm just starting my first project big enough to split among many
- people, and from the vague explanations I've heard, assert is supposed
- to be a usefull way to cause errors when someone passes your code bad
- values. How do I do this?
-
- thanx,
-
- ;john nield
-
-